package tech.dnf.tripartite.nnfpjss.bean.dto;

import lombok.Data;
import tech.dnf.tripartite.nnfpjss.bean.enums.ERequestOperater;

import java.util.Optional;

/**
 * Create by dengfan at 2019/8/5 0005 13:52
 */
@Data
public class PrintRequest implements Request {
    // 接口标识
    private ERequestOperater operater;
    // 订单编号
    private String orderNo;

    public ERequestOperater getEOperater(){
        return operater;
    }

    public String getOperater() {
        return Optional
            .ofNullable(operater)
            .map(ERequestOperater::getName)
            .orElse(null);
    }

}
